package de.listrong.da.metainfo.datamodel;

import de.listrong.da.ontology.OntologyClasses;
import de.listrong.da.tools.IdGenerator;
import de.listrong.da.tools.NewIDGener;

/**
 * Created by IntelliJ IDEA.
 * User: Qiang
 * Date: 10.11.2008
 * Time: 14:00:54
 */
public class Author {
    private String firstname;
    private String lastname;
    private int id;

    public int getId() {
        return id;
    }

    public Author(String firstname, String lastname) {
        this.firstname = firstname;
        this.lastname = lastname;
        this.id = NewIDGener.newId(OntologyClasses.AUTHOR);
        // IdGenerator.getInstance().newId(OntologyClasses.AUTHOR);
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    @Override
    public String toString() {
        return "[Author: " + firstname + " " + lastname + "]";
    }
}
